@extends("admin.layout.main")



@section('content')
    <div class="layui-form" style="width:80%;margin-top:10px;margin-bottom: 80px;">
        <div class="layui-form-item">
            <label class="layui-form-label">商品ID</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"  readonly="readonly" value="{{$id}}" >
                </div>
            </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品名</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"  readonly="readonly"  value="{{$goods_name}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所需积分</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"  readonly="readonly"  value="{{$scores}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">市场价格</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"  readonly="readonly"  value="{{$market_price}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">允许兑换的会员等级</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"  readonly="readonly"  value="{{$allow_level}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品封面图</label>
            <div class="layui-input-block goods-photo-face" id="goods-photo-face">
                <img src="{{$cover}}" style="width:80px;height:80px;" title="点击查看大图" layer-src="{{$cover}}" alt="商品封面图"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否上架</label>
            <div class="layui-input-block">
                @if($status==0)
                   <input type="text" class="layui-input"  readonly="readonly"  value="未上架"/>
                    @else
                    <input type="text" class="layui-input"  readonly="readonly" value="已上架"/>
                    @endif
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">运费</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"  readonly="readonly" value="{{$freight}}" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">库存</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"  readonly="readonly"  value="{{$rest}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">销量</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"  readonly="readonly"  value="{{$sale}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">创建时间</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"  readonly="readonly" value="{{date('Y-m-d H:i:s',$create_time)}}" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品详情</label>
            <div class="layui-input-block">
                <textarea class="layui-input"  readonly style="resize:none;height:auto;"> {!!$goods_info!!}</textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">商品详情图</label>
            <div class="layui-input-block goods-photos" id="goods-photos">
                    @foreach($newbanner as $n)
                        <img src="{{$n}}" layer-src="{{$n}}" title="点击查看大图" style="width:80px;height:80px;" alt="商品图"/>
                    @endforeach
            </div>
        </div>
    </div>
@endsection

@section('js')
 <script type="text/javascript" src="/js/jquery.min.js"></script>
 <script type="text/javascript" src="/adstatic/goods/goods.js"></script>
@endsection